package com.me.GameObjects;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Circle;
import com.badlogic.gdx.math.Vector2;

public class Bubble {
	
	public final static Color INFLADO =Color.BLUE;
	public final static Color ESTRIPADO =Color.YELLOW;
	public final static Color EXPLOTADO =Color.RED;
	
	private Circle circle;
	private float radious;
	private Vector2 posicion;
    private Color estado;
    
    public Bubble(float x, float y, float r) {
		posicion=new Vector2(x,y);		
		radious=r;	
		estado=INFLADO;
		circle=new Circle(x, y, r);
	}
    
    
    
	public Circle getBubble() {
		return circle;
	}



	public void setBubble( float x, float y,float r) {
		posicion=new Vector2(x,y);		
		radious=r;
		this.circle = new Circle(x, y,r);
	}



	

	public Color getEstado() {
		return estado;
	}


	public void setEstado(Color estado) {
		this.estado = estado;
	}

  
	
	

	


	public boolean iscontain(float x, float y) {	
		double a=posicion.x-x;
		double b=posicion.y-y;
		double distance=a*a+b*b;	
		System.out.println("distance"+distance);
		if (distance<= radious*radious)	return true;
		else return false;	
	}

	
	
	

}
